using BuildingBlocks.Core.Interfaces;

namespace Catalog.Domain.Events;
public class StockUpdatedDomainEvent : IDomainEvent
{
    public Guid CatalogItemId { get; }
    public int NewStock { get; }
    public DateTime OccurredOn { get; } = DateTime.UtcNow;

    public StockUpdatedDomainEvent(Guid catalogItemId, int newStock)
    {
        CatalogItemId = catalogItemId;
        NewStock = newStock;

    }
}